{$header}
<div id="main" class="main" >
    <div class="content">
  <h3 class="heading">供应商 <strong>{$_REQUEST.id|getModelName='Supplier'}</strong> 产品 [ <a href="__APP__/Product">返回产品列表</a> ] 
<div class="btn-group pull-right">
	<button class="btn btn-primary" onclick="selProduct({$_REQUEST.id})"><i class="icon-search icon-white"></i> 选择反应类型</button>
	<button class="btn btn-primary" onclick="addProduct({$_REQUEST.id})"><i class="icon-tags icon-white"></i> 创建反应类型</button>
</div>
  </h3>
<div id="result" class="result none"></div>
<ul id="myTab" class="nav nav-tabs">
	<li><a href="__URL__/edit/id/{$_REQUEST.id}">供应商信息</a></li>
	<li><a href="__URL__/plist/id/{$_REQUEST.id}">产品</a></li>
	<li><a href="__URL__/product_class/id/{$_REQUEST.id}">主要产品类别(定制)</a></li>
	<li class="active"><a href="#reaction_type">擅长反应类型(特色)</a></li>
</ul>
 <div id="myTabContent" class="tab-content">
            
	<div class="tab-pane fade in active" id="reaction_type">
		<table class="table">
			<tr><th>编号</th><th>反应类型</th><th>删除</th> </tr>
			<volist name="products" id="ca">
				<tr>
				<td>{$ca.id}</td>
				<td>{$ca.reaction_type_id|getModelName='Reaction_type'}</td>
				
				<td><a href="__APP__/Supplier_reaction_type/foreverdelete/id/{$ca.id}">删除</a> </td>
			</tr>
			</volist>
		</table>
		<div class="page">{$page}</div>
	</div><!--profile-->

</div>
</div>
<include file="Public:footer" />
<load href="__PUBLIC__/Js/jquery-1.7.2.min.js"/>
<load href="__PUBLIC__/bootstrap/js/bootstrap-tab.js" />
<script type="text/javascript">
	function selProduct(id){
		if(id)
			 window.open(APP+'/Reaction_type/search?form=form1&supplier_id='+id,'selected','directorys=no,toolbar=no,status=no,menubar=no,resizable=yes,width=1000,height=800,top=100,left=120,scrollbars=yes');
		else
			alert("请选择供应商");
			return false;
	}

function addProduct(id){
		if(id)
			 location.href = APP+'/Reaction_type/add/supplier_id/'+id;
		else
			alert("请选择供应商");
			return false;
	}
</script>
